<?php
class FrameworkException extends Exception {
	/**
	 * param 3 is added in php5.3
	 */
	public function __construct($msg = '', $code = 0) {
		parent::__construct($msg, $code);
	}
	
	public function __toString() {
		return parent::__toString();
	}
	
	public static function throwEx($msg = '', $code = 0) {
		throw new self($msg, $code);
	}
}

class FException extends FrameworkException {

}
?>